package cn.c4ad.voa;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

public class AboutFragment extends Fragment {
	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		return inflater.inflate(R.layout.about_fragment, container, false);
	}

	@Override
	public void onResume() {
		super.onResume();

		refreshActionBar();
	}

	private void refreshActionBar() {
		View actionBarView = getActivity().getActionBar().getCustomView();
		TextView title = (TextView) actionBarView.findViewById(R.id.title);
		title.setText(R.string.ic_about);

		TextView right = (TextView) actionBarView
				.findViewById(R.id.rightButton);
		right.setText(null);
		right.setVisibility(View.GONE);
	}
}
